package cn.wolfcode.luowowo.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@Document("item_comment")
public class ItemComment implements Serializable {
    public static final int ITEM_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int ITEM_COMMENT_TYPE = 1; //评论的评论

    @Id
    private String id;  //id

    private Long fromId;    //用户id

    private String fromName; //用户名

    private int fromLevel;

    private String fromImg;   // 用户头像

    private int state = ITEM_COMMENT_TYPE_COMMENT; //评论类别

    private Date createTime; //创建时间

    private String content;  //评论内容

    private Long toId;    //评论的用户id

    private String toName; //评论的用户名
}
